/********************************************************************
** filename: 	Time.cpp
****** date:	2012-10-23 15:17:11
**** author:	weide
****** memo:	
all copyright reserved by weide001@gmail.com
*********************************************************************/
//:START OF Time.cpp

#include "time/inc/Time.h"

NAMESPACE_XLIB_BGN

std::string XTime::current( const string& format /*= FORMAT_TIME*/ )
{
	return TimetToString(time(0),format,2);
}

XTime::XTime( const string& time, const string& format /*= FORMAT_TIME*/ )
{
	// @TODO: ...
}

std::string XTime::toString( const string& format /*= FORMAT_TIME*/ )
{
	return TimetToString(this->get(),format,2);
}

NAMESPACE_XLIB_END
//END OF Time.cpp //:~
